﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="~/DangKyThanhVien.aspx.cs" Inherits="WebsiteBanSachOnline.DangKyThanhVien" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="CSS/dangnhapdangki.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
     
      
     
        .style10
        {
            width: 150px;
            vertical-align: top;
            padding-top: 12px;
            text-align: right;
            height: 28px;
        }
        .style11
        {
            padding-top: 10px;
            vertical-align: top;
            text-align: left;
            height: 28px;
        }
     
      
     
    </style>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="dangky_container">
<div id="dangky_left_container">

   <table style="font-size:100%;height:265px;width:100%;">
                        <tr>
                            <td align="center" colspan="2" class="dangky_header_text">
                                Thông tin tài khoản</td>
                            <td align="center" class="dangky_header_text">&nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="3" id="error_container">
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" 
                                    HeaderText="Xảy ra lỗi trong quá trình đăng ký" ValidationGroup="Group1" 
                                    Width="335px" />
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="dangky_info_text">
                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Tên đăng nhập:</asp:Label>
                            </td>
                            <td class="dangky_content">
                                <asp:TextBox ID="UserName" runat="server" Width="200px" 
                                    ValidationGroup="Group1"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                    ControlToValidate="UserName" ErrorMessage="Tên đăng nhập không được bỏ trống." 
                                    ToolTip="Tên đăng nhập là bắt buộc" ValidationGroup="Group1" 
                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:Label ID="lblTenDangNhapOke" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                            <td class="dangky_content">
                                <asp:LinkButton ID="lbtKiemTraTenDangNhap" runat="server" 
                                    onclick="lbtKiemTraTenDangNhap_Click" ValidationGroup="Group1" 
                                    CausesValidation="False">Kiểm Tra</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="dangky_info_text">
                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Mật khẩu:</asp:Label>
                            </td>
                            <td class="dangky_content">
                                <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="200px" 
                                    ValidationGroup="Group1"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                    ControlToValidate="Password" ErrorMessage="Mật khẩu không được bỏ trống." 
                                    ToolTip="Mật khẩu không được bỏ trống" ValidationGroup="Group1" 
                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                            </td>
                            <td class="dangky_content">&nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td align="right" class="dangky_info_text">
                                <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                    AssociatedControlID="ConfirmPassword">Nhập lại mật khẩu:</asp:Label>
                            </td>
                            <td class="dangky_content">
                                <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" 
                                    Width="200px" ValidationGroup="Group1"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                    ControlToValidate="ConfirmPassword" 
                                    ErrorMessage="Mật khẩu nhập lại không được bỏ trống." 
                                    ToolTip="Mật khẩu nhập lại không được bỏ trống." ValidationGroup="Group1" 
                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                    ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                    Display="Dynamic" 
                                    ErrorMessage="Mật khẩu không trùng khớp." 
                                    ValidationGroup="Group1" ForeColor="Red"></asp:CompareValidator>
                            </td>
                            <td class="dangky_content">&nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td align="right" class="dangky_info_text">
                                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                            </td>
                            <td class="dangky_content">
                                <asp:TextBox ID="Email" runat="server" Width="200px" ValidationGroup="Group1"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                    ControlToValidate="Email" ErrorMessage="E-mail  không được bỏ trống." 
                                    ToolTip="E-mail  không được bỏ trống." ValidationGroup="CreateUserWizard1" 
                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                     
                                <asp:Label ID="lblEmailOke" runat="server" ForeColor="Red"></asp:Label>
                                <asp:RegularExpressionValidator ID="EmailREV" runat="server" 
                                    ControlToValidate="Email" ErrorMessage="Email không hợp lệ" 
                                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                                    Display="Dynamic" EnableViewState="False" ValidationGroup="Group1" 
                                    ForeColor="Red"></asp:RegularExpressionValidator>
                     
                            </td>
                            <td class="dangky_content">
                                <asp:LinkButton ID="lbtKiemTraEmail" runat="server" 
                                    onclick="lbtKiemTraEmail_Click" CausesValidation="False" 
                                    ValidationGroup="Group1">Kiểm Tra</asp:LinkButton>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" class="dangky_info_text">
                                <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">Câu hỏi bí mật:</asp:Label>
                            </td>
                            <td class="dangky_content">
                                <asp:TextBox ID="Question" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" 
                                    ControlToValidate="Question" ErrorMessage="Câu hỏi bí mật không được bỏ trống." 
                                    ToolTip="Câu hỏi bí mật không được bỏ trống." 
                                    ValidationGroup="CreateUserWizard1" ForeColor="Red">*</asp:RequiredFieldValidator>
                            </td>
                            <td class="dangky_content">&nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td align="right" class="dangky_info_text">
                                <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Đáp án:</asp:Label>
                            </td>
                            <td class="dangky_content">
                                <asp:TextBox ID="Answer" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                                    ControlToValidate="Answer" ErrorMessage="Đáp án không được bỏ trống." 
                                    ToolTip="Đáp án không được bỏ trống." ValidationGroup="CreateUserWizard1" 
                                    ForeColor="Red">*</asp:RequiredFieldValidator>
                            </td>
                            <td class="dangky_content">&nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color:Red;">&nbsp;
                                </td>
                            <td align="center" style="color:Red;">&nbsp;
                                </td>
                        </tr>
                    </table>
                    </div>
                    <div id="dangky_right_container">
                    <table style="font-size:100%;height:265px;width:100%;">
                        <tr>
                            <td align="center" colspan="2" class="dangky_header_text">
                                Thông tin Khách hàng</td>
                            <td align="center" class="style12">&nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td class="dangky_info_text">
                                <asp:Label ID="Label1" runat="server">Họ tên khách hàng:</asp:Label>
                            </td>
                            <td class="dangky_content" colspan="2">
                                <asp:TextBox ID="txtHoTen" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="HoTenRequiredField" runat="server" 
                                    ControlToValidate="txtHoTen" ErrorMessage="Họ tên không được bỏ trống" 
                                    ValidationGroup="Group1" Display="Dynamic" ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:Label ID="lblTenOke" runat="server"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style10">
                                <asp:Label ID="Label3" runat="server" Text="Giới Tính:"></asp:Label>
                            </td>
                            <td class="dangky_content" colspan="2">
                                <asp:RadioButtonList ID="RLGioiTinh" runat="server" 
                                    RepeatDirection="Horizontal" Width="119px">
                                    <asp:ListItem Selected="True" Value="1">Nam</asp:ListItem>
                                    <asp:ListItem Value="0">Nữ</asp:ListItem>
                                </asp:RadioButtonList>
                                </td>
                        </tr>
                        <tr>
                            <td class="dangky_info_text">
                                <asp:Label ID="Label4" runat="server" Text="Số CMND:"></asp:Label>
                            </td>
                            <td class="dangky_content" colspan="2">
                                <asp:TextBox ID="txtCMND" runat="server" Width="200px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                    ControlToValidate="txtCMND" ErrorMessage="CMND không được bỏ trống" 
                                    ValidationGroup="Group1" Display="Dynamic" ForeColor="Red">*</asp:RequiredFieldValidator>
                                <asp:Label ID="lblSoCMNDOke" runat="server"></asp:Label>
                                &nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td class="dangky_info_text">
                                <asp:Label ID="Label5" runat="server" Text="Điện Thoại"></asp:Label>
                            </td>
                            <td class="dangky_content" colspan="2">
                                <asp:TextBox ID="txtDienThoai" runat="server" Width="200px"></asp:TextBox>
                                <asp:Label ID="lblDienThoaiOke" runat="server"></asp:Label>
                                &nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td class="dangky_info_text">
                                <asp:Label ID="Label6" runat="server" Text="Địa Chỉ"></asp:Label>
                            </td>
                            <td class="dangky_content" colspan="2">
                                <asp:TextBox ID="txtDiaChi" runat="server" Width="200px"></asp:TextBox>
                                &nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td class="dangky_info_text">
                                <asp:Label ID="Label7" runat="server" Text="Thành Phố"></asp:Label>
                            </td>
                            <td class="dangky_content" colspan="2">
                                <asp:DropDownList ID="ddlThanhPho" runat="server" Width="200px">
                                </asp:DropDownList>
                                &nbsp;
                                </td>
                        </tr>
                        </table>
                    </div>
                    <div id="dangky_button_container">
                        <asp:Button ID="btnDangKy" runat="server" Height="34px" Text="Đăng Ký" 
                            Width="85px" onclick="btnDangKy_Click" ValidationGroup="Group1" />
                        <asp:Button ID="btnHuy" runat="server" Height="34px" Text="Huỷ" Width="76px" />
                    </div>
</div>
</asp:Content>
